extends "../cTDW/cTDW.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "矮人战士"
	lv = 2
	attCoe.atkRan = 3
	attCoe.atk = 29 / 8.5 * 2 / 2
	attCoe.maxHp = 960 / 112.5 / 2
	attCoe.def = 10 / 15.0 / 2.0
	attCoe.mgiDef = 10 / 16.6 / 2.0
	addSkillTxt("飞锤：攻击距离+2;攻击附带自身血量3%点真伤")
	addSkillTxt("破甲锤：被攻击者若有护甲(物/法)，则附加1层<破甲>和<魔破>")
	
func _onAtkChara(atkinfo):
	._onAtkChara(atkinfo)
	if (atkinfo.hitCha.att.def  + atkinfo.hitCha.att.mgiDef) != 0 && !atkinfo.isMiss:
		atkinfo.hitCha.addBuff(ctrl.b_pj.new(1))
		atkinfo.hitCha.addBuff(ctrl.b_mp.new(1))
	if !atkinfo.isMiss && atkinfo.atkType != Chara.AtkType.EFF:
		hurtChara(atkinfo.hitCha,att.maxHp*0.03,Chara.HurtType.REAL,Chara.AtkType.EFF)